Formal Foundations for Optimising Aggregation Functions in Database Programming Languages

نویسندگان

  • Alexandra Poulovassilis
  • Carol Small
چکیده

This paper investigates the optimisation of aggregation functions in the context of computationally complete database programming languages and aims to generalise and provide a unifying formal foundation for previous work. We deene a `fold' operator over collection types in terms of which operations such as selection, projection, join and group-by can be deened, as well as aggregation functions such as sum, max and min. We introduce two equivalences for which respectively govern the commuting and coalescing of applications of. From these two equivalences we then formally derive equivalences governing the commuting and coalescing of iteration operations over collections, the mapping of aggregation functions over grouped collections, the introduction and elimination of aggregation functions, and the promotion of aggregation functions through iteration operations. We also show how some of these equivalences can be used to optimise comprehensions, a high-level query construct supported by many database languages.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Foundations of Aggregation Constraints

We introduce a new constraint domain, aggregation constraints , which is useful in database query languages, and in constraint logic programming languages that incorporate aggregate functions. We study the fundamental problem of checking if a conjunction of aggrega-tion constraints is solvable, and present undecidability results for many diierent classes of aggregation constraints. We describe ...

متن کامل

Algebra and Topology in Lambda Calculus

The untyped lambda calculus was introduced around 1930 by Church [11] as part of an investigation in the formal foundations of mathematics and logic. Although lambda calculus is a very basic language, it is sufficient to express all the computable functions. The process of application and evaluation reflects the computational behavior of many modern functional programming languages, which expla...

متن کامل

Fundamentals and Pragmatics of an Entity-Relationship Approach

ii Preface Studying modern database languages one recognizes that there is a gap between language features and theoretical foundations: Studies of the formal foundations exist for the relational data model but not for the Entity-Relationship model, which is a model used by numerous practical people. Also, most extensions of the Entity-Relationship model and other semantic data models lack a pre...

متن کامل

Nested Concept Graphs: Applications for Databases and Mathematical Foundations

While the basic idea of using Conceptual Graphs as query interface to relational databases has already been stated very early in [Sow84], no approach so far has covered the full expressiveness of modern database query languages. Especially negation and the so-called aggregating functions have not been treated. In this paper, we present Nested Concept Graphs with Cuts which extend the syntactica...

متن کامل

Abstract Logical Foundations of Active Databases

Logical Foundations of Active Databases Iluju Kiringa Doctor of Philosophy Graduate Department of Computer Science University of Toronto 2003 Classical database management systems (DBMSs) have been enhanced over the past fifteen years with the addition of rule-based programming to obtain active DBMSs. Active behavior is mainly characterized by a rule language and an execution model. Execution m...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997